import { CUSTOM } from '@/config/connfig.js';
// bom报价模块
export const quotation = {
  addBomMatchList: `${CUSTOM}/crmCustomerBomMatchList/addBomMatchList`,
  againMatchBom: `${CUSTOM}/crmCustomerBomMatchList/againMatchBom`,
  confirmBomMatchId: `${CUSTOM}/crmCustomerBomMatchList/confirmBomMatchId`,
  deleteBomMatchList: `${CUSTOM}/crmCustomerBomMatchList/deleteBomMatchList`,
  getBomMatchListStatisticsData: `${CUSTOM}/crmCustomerBomMatchList/getBomMatchListStatisticsData`,
  queryPageList: `${CUSTOM}/crmCustomerBomMatchList/queryPageList`,
  updateBomExpress: `${CUSTOM}/crmCustomerBomMatchList/updateBomExpress`,
  updateManufacturerPn: `${CUSTOM}/crmCustomerBomMatchList/updateManufacturerPn`,
};

// 客户模块
export const custom = {
  // 会员账号
  memberAccount: {
    updateAccount: `${CUSTOM}/crmCustomerAccount/updateAccount`,
    updatePassword: `${CUSTOM}/crmCustomerAccount/updatePassword`,
    // 修改邮箱获取新旧验证码
    getEmailVerificationCode: `${CUSTOM}/crmCustomerAccount/getEmailVerificationCode`,
    // 修改邮箱验证新旧验证码
    verificationCode: `${CUSTOM}/crmCustomerAccount/verificationCode`,
  },
  // 公司信息
  clientCompanyInfo: {
    queryById: `${CUSTOM}/crmCustomer/queryById`,
  },
  // 快递地址
  deliveryAddress: {
    addAddress: `${CUSTOM}/crmCustomerExpressAddress/add`,
    delete: `${CUSTOM}/crmCustomerExpressAddress/delete/`,
    inquire: `${CUSTOM}/crmCustomerExpressAddress/queryById/`,
    list: `${CUSTOM}/crmCustomerExpressAddress/queryPageList`,
    update: `${CUSTOM}/crmCustomerExpressAddress/update`,
    region: `${CUSTOM}/region/queryList`,
  },
  // 第三方账号
  thirdPartyAccount: {
    queryPageList: `${CUSTOM}/crmCustomerAccountBind/queryPageList`,
    unbind: `${CUSTOM}/crmCustomerAccountBind/unbind/`,
  },
  // gerber列表清单
  gerberChecklist: {
    delete: `${CUSTOM}/crmCustomerGerberList/delete/`,
    inquire: `${CUSTOM}/crmCustomerGerberList/queryById/`,
    list: `${CUSTOM}/crmCustomerGerberList/queryPageList/`,
  },
  // 清单文件
  attachmentFileList: {
    delete: `${CUSTOM}/crmCustomerFile/delete`,
    inquire: `${CUSTOM}/crmCustomerFile/queryById/`,
    list: `${CUSTOM}/crmCustomerFile/queryPageList`,
    queryBomPageList: `${CUSTOM}/crmCustomerFile/queryBomPageList`,
  },
  // pcba邮寄物料模块
  mailingMaterials: {
    queryPagePcbaOrderWaitExpressList: `${CUSTOM}/crmPcbaSmtExpress/queryPagePcbaOrderWaitExpressList`,
    addPcbaOrderToExpress: `${CUSTOM}/crmPcbaSmtExpress/addPcbaOrderToExpress/`,
    queryPagePcbaSmtBomOrderExpressList: `${CUSTOM}/crmPcbaSmtExpress/queryPagePcbaSmtBomOrderExpressList`,
    queryPagePcbaSmtPcbExpressMaterialsList: `${CUSTOM}/crmPcbaSmtExpress/queryPagePcbaSmtPcbExpressMaterialsList`,
    updateMaterialsQuantity: `${CUSTOM}/crmPcbaSmtExpress/updateMaterialsQuantity`,
    deleteExpressMaterialsId: `${CUSTOM}/crmPcbaSmtExpress/deleteExpressMaterialsId`,
    queryPagePcbaWaitExpressMaterialsList: `${CUSTOM}/crmPcbaSmtExpress/queryPagePcbaWaitExpressMaterialsList`,
    createPcbaOrderExpress: `${CUSTOM}/crmPcbaSmtExpress/createPcbaOrderExpress`,
    queryPageList: `${CUSTOM}/crmPcbaSmtExpress/queryPageList`,
    cancelPcbaSmtExpress: `${CUSTOM}/crmPcbaSmtExpress/cancelPcbaSmtExpress/`,
  },
  // bom订单明细
  bomOrderDetail: {
    queryPageList: `${CUSTOM}/crmPcbaBomOrderDetail/queryPageList`,
    delete: `${CUSTOM}/crmPcbaBomOrderDetail/delete/`,
  },
};

// pcba订单模块
export const pcbOrder = {
  // 服务类型列表
  serviceType: {
    getPcbaServiceCategoryDetail: `${CUSTOM}/crmPcbaServiceCategory/getPcbaServiceCategoryDetail/`,
    getPcbaServiceCategoryList: `${CUSTOM}/omsServiceCategory/queryTreeList`,
  },
  // 客户PCBA订单
  pcbOrder: {
    createPcbaOrder: `${CUSTOM}/crmPcbaOrder/createPcbaOrder`,
    cancelOrderById: `${CUSTOM}/crmPcbaOrder/cancelOrderById/`,
    deleteOrder: `${CUSTOM}/crmPcbaOrder/deleteOrder/`,
    pcbInfo: `${CUSTOM}/crmPcbaOrder/queryById/`,
    pcbaOrderLsit: `${CUSTOM}/crmPcbaOrder/queryPageList`,
  },
  // pcb订单
  pcbOrderDetail: {
    queryPcbaPcbOrderList: `${CUSTOM}/crmPcbaPcbOrder/queryPcbaPcbOrderList`,
    queryPcbaPcbOrderNotExpressList: `${CUSTOM}/crmPcbaPcbOrder/queryPcbaPcbOrderNotExpressList`,
  },
  // 快递公司列表
  expressCompanyList: `${CUSTOM}/crmExpressCompany/queryPageList`,
  // 商城订单- PCBA订单退款
  pcbaRefundOrder: `${CUSTOM}/omsMallPaymentRefundOrder/refundPayOrder`,

  // 支付模块
  paymentModule: {
    creatPayOrder: `${CUSTOM}/crmPaymentOrder/creatPayOrder`,
    confirmPayOrder: `${CUSTOM}/crmPaymentOrder/confirmPayOrder`,
    cancelUnPayOrder: `${CUSTOM}/crmPaymentOrder/cancelUnPayOrder`,
  },
};

/**
 * 字典列表
 */
export const dictionaryList = {
  getDictList: `${CUSTOM}/dict/getDictList`,
  getDictTypeList: `${CUSTOM}/dict/getDictTypeList`,
};

/**
 * pcb工艺类型
 */
export const pcbProcessType = {
  queryCraftsCategoryDetail: `${CUSTOM}/crmPcbaCraftsCategory/queryCraftsCategoryDetail/`,
  queryCraftsCategoryList: `${CUSTOM}/omsCraftsCategory/queryTreeList`,
};

/**
 * 产品中心
 */
export const product = {
  // pcb产品工艺信息过滤刷选
  productCraftsFilterList: `${CUSTOM}/crmProductCategory/selectProductCraftsOrServiceFilterList`,
  // 产品列表
  productList: `${CUSTOM}/crmProduct/queryPageList`,
  // 产品分类列表
  productCategoriesList: `${CUSTOM}/crmProductCategory/queryPageList`,
};

/**
 * pcb smt bom工艺服务报价
 */
export const processServiceQuotation = {
  smtProcessServiceQuotation: `${CUSTOM}/crmPcbaCraftsCategoryCalculation/calculationSmtServiceCost`,
  bomProcessServiceQuotation: `${CUSTOM}/crmPcbaCraftsCategoryCalculation/calculationBomServiceCost/`,
};
